package com.chushouya.product.dto.admin.evaluate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 评估项目
 */
@Data
@ApiModel("编辑评估项目")
public class EvaluateItemEditDTO {

    @ApiModelProperty(value = "评估项目id", required = true)
    @NotNull(message = "评估项目id不能为空")
    private Long evaluateItemId;

    @ApiModelProperty(value = "评估项目名称", required = true)
    @NotBlank(message = "评估项目名称不能为空")
    private String itemName;

    @ApiModelProperty(value = "评估项目选项类型, EvaluateItemSelectTypeEnum", required = true)
    @NotNull(message = "评估项目选项类型不能为空")
    private Integer selectType;

    @ApiModelProperty(value = "评估项目选项列表", required = true)
    @NotEmpty(message = "评估项目选项列表不能为空")
    private List<EvaluateItemValueDTO> values;

}
